﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>刷新时清空所有文本框</title>
    <script type="text/javascript" language="JavaScript">
        
        
    </script>
</head>
<body onload="document.forms[0].reset()">

<form name="form1">
    <input type=text name="txt1" value="第一个测试!">
    <input type=text name="txt2" value="第二个测试!">
    <input type=text name="txt3" value="第三个测试">
</form>

</body>
</html>